package com.onion.utils.surface.request;

import java.util.ArrayList;
import java.util.List;

public abstract class RequestList<T> implements java.io.Serializable{

    private String requestId;
    private String source;
    private Class<T> dataClazz;
    private List<T> data = new ArrayList<>();

    public abstract void initRequest();

    public String getRequestId() {
        return requestId;
    }
    public void setRequestId(String requestId) {
        this.requestId = requestId;
    }

    public String getSource() {
        return source;
    }
    public void setSource(String source) {
        this.source = source;
    }

    public Class<T> getDataClazz() {
        return dataClazz;
    }
    public void setDataClazz(Class<T> dataClazz) {
        this.dataClazz = dataClazz;
    }

    public List<T> getData() {
        return data;
    }
    public void setData(List<T> data) {
        this.data = data;
    }

}